package my.mall.front.api.pojo.goods.detail

class SpecInfo(var attrName: String, var attrValueList: MutableList<SpecItem>) {

    class SpecItem(var itemId: Long, var itemName: String) {

        override fun equals(other: Any?): Boolean {
            if (other == null) {
                return false
            }
            val otherItem = other as SpecItem
            return itemId == otherItem.itemId
        }

        override fun hashCode(): Int {
            return itemId.hashCode()
        }
    }
}
